﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace IsikFx.Project.ClientApp.Pages
{
    /// <summary>
    /// Interaction logic for MyGoals.xaml
    /// </summary>
    public partial class MyGoals : UserControl
    {
        Goals myGoals;
        public MyGoals()
        {
            InitializeComponent();
            Loaded += MyGoals_Loaded;
            InitializeMyGoals();
            this.DataContext = myGoals;
        }

        private void InitializeMyGoals()
        {
            myGoals = new Goals();

            myGoals.FundAccountGoal = 100;
            myGoals.FundAccountProgress = 45;
            myGoals.FundAccountGoalPercantage = ("% ") + ((100 * myGoals.FundAccountProgress) / myGoals.FundAccountGoal).ToString();

            myGoals.FundAmountGoal = 100000;
            myGoals.FundAmountProgress = 64000;
            myGoals.FundAmountGoalPercantage = ("% ") + ((100 * myGoals.FundAmountProgress) / myGoals.FundAmountGoal).ToString();

        }

        void MyGoals_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void Link_PropertyChanged_1(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {

        }

        private void tabs_ContextMenuOpening_1(object sender, ContextMenuEventArgs e)
        {

        }
    }

    public class Goals
    {
        public Int32 FundAccountGoal { get; set; }
        public Int32 FundAccountProgress { get; set; }
        public Int64 FundAmountGoal { get; set; }
        public Int64 FundAmountProgress { get; set; }
        public string FundAccountGoalPercantage { get; set; }
        public string FundAmountGoalPercantage { get; set; }
    }
}
